/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pub.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.pub.entity.PubAttach;

/**
 * 单表生成DAO接口
 * @author zmy
 * @version 2019-04-18
 */
@MyBatisDao
public interface PubAttachDao extends CrudDao<PubAttach> {

	int updatelike(@Param("id") String id,@Param("userid") String userid,@Param("articleid") String articleid,@Param("type") String type,@Param("arttype") String arttype,@Param("articlename") String articlename);

	PubAttach getlike(@Param("userid") String userid,@Param("articleid") String articleid);

	PubAttach getcol(@Param("userid") String userid,@Param("articleid") String articleid);

	List<Object[]> findComment(String articleid);

	int savecomment(@Param("id") String id,@Param("articleid") String articleid,@Param("userid") String userid,@Param("type") String type,@Param("arttype") String arttype,@Param("comment") String comment,
			@Param("commenttime") String commenttime,@Param("articlename") String articlename);

	List<Object[]> colList(String userid);
	
}